def Legal(year):
	if year%4==0 and year%100!=0:
		return True
	elif year%400==0 and year%100==0:
		return True

while True:
	year = raw_input()
	if year:
		if Legal(int(year)):
			print "run year!"
		else:
			print "normal year!"
	else:
		break
	
